﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Timer</title>
    <script src="./Scripts/jquery-1.10.2.min.js"></script>
    <script src="./Scripts/jquery.signalR-2.1.2.min.js"></script>
    <script src="./signalr/hubs" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var hub = $.connection.timerHub;

            hub.client.doknock = function (waktu) {
                $('#AddText').append(waktu + ' knock knock <br />');
            }

            $.connection.hub.start().done(function () {
                hub.server.knock();
            });
        });
    </script>
</head>
<body>
    <div id="AddText"></div>
</body>
</html>
